package com.xmy.cultivate.service.impl;

import com.xmy.cultivate.entity.SchoolQuarter;
import com.xmy.cultivate.mapper.SchoolQuarterMapper;
import com.xmy.cultivate.service.ISchoolQuarterService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 每个学期存在的校区 服务实现类
 * </p>
 *
 * @author hpiggy
 * @since 2024-09-28
 */
@Service
public class SchoolQuarterServiceImpl extends ServiceImpl<SchoolQuarterMapper, SchoolQuarter> implements ISchoolQuarterService {

    @Autowired
    SchoolQuarterMapper schoolQuarterMapper;

    @Override
    public String getChilIds(Integer yearPart, Integer quarterNum, String schoolId){
        return schoolQuarterMapper.getChilIds(yearPart,quarterNum,schoolId);
    }

    @Override
    public List<Long> getChilIdList(Integer yearPart, Integer quarterNum, String schoolId){
        return schoolQuarterMapper.getChilIdList(yearPart,quarterNum,schoolId);
    }

    @Override
    public String getBigSchoolIdStr(String yearPart, String quarterNum, String schoolId) {
        return schoolQuarterMapper.getBigSchoolIdStr(yearPart,quarterNum,schoolId);
    }

    @Override
    public List<Long> getSchoolIdList(Integer yearPart, Integer quarterNum){
        return schoolQuarterMapper.getSchoolIdList(yearPart,quarterNum);
    }

    @Override
    public String getSchoolIdStr(Integer yearPart, Integer quarterNum){
        return schoolQuarterMapper.getSchoolIdStr(yearPart,quarterNum);
    }
}
